package cn.lovemmd.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("model_list")
public class ModelList {
    
    @TableId(type = IdType.AUTO)
    private Integer mId;
    
    private String mName;
    private String mUrl;
    private String mImg;
    private String mOccupation;
    private String mCategory;
    private String mDescription;
    private String mAuthor;
    private String mVersion;
    private Long mFileSize;
    private String mFileType;
    private Integer mDownloadCount;
    private Integer mViewCount;
    private Integer mStatus; // 0-禁用 1-启用 2-审核中
    
    // 新增字段：使用说明相关
    private String mModelSource; // 模型来源
    private String mBoneBinding; // 骨骼绑定
    private String mPhysicsBinding; // 物理绑定
    private String mExpressionMaking; // 表情制作
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
}
